import request from '@/utils/request'
import Cookies from 'js-cookie'

// 获取列表
export function getList(data) {
    return request({
        url: '/Ims_send_orders/purchase_send_order_info',
        method: 'post',
        data: data
    })
}
// 发货单下载
export function getExport(data) {
    // window.location.href = `http://dev.hahaipi.com/smsi/index.php/Ims_send_orders/send_order_print?send_id=${data.send_id}&didixueshengka=${Cookies.get('SMS_AdminToken')}`; 
    window.location.href = `https://${location.host}/smsi/index.php/Ims_send_orders/send_order_print?send_id=${data.send_id}&didixueshengka=${Cookies.get('SMS_AdminToken')}`; 
}
